package com.example.service;

import com.example.pojo.Apartment;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ApartmentService {
    void add(Apartment apartment, HttpServletRequest request);

    List<Apartment> getApartment(String name,Integer cuType, HttpServletRequest request);

    void delApartment(Integer id, HttpServletRequest request);

    Apartment getApartmentId(Integer id);

    void setApartment(Apartment apartment, HttpServletRequest request);

    List<Apartment> getApartmentIndex(String name, String location, String fitment, Double areaMin, Double areaMax, String roomType, Double priceMin, Double priceMax, String towards,String subway);
}

